package main

import (
	"fmt"
	"os"
)

func main()  {
	file,err := os.Open("d:\\golang_workstation\\test.txt")
	if err != nil {
		fmt.Println("文件打开错误，错误=",err)
		return
	}

	fmt.Printf("文件内容=%v",file)

	err1 := file.Close()
	if err1 != nil {
		fmt.Println("关闭错误，错误=",err1)
	}
}

